package com.primeton.whdc.ccms.reportimpl.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.primeton.whdc.ccms.reportimpl.entity.CallRecord;
import com.primeton.whdc.ccms.reportimpl.param.ReportRecordTreeVO;
import com.primeton.whdc.ccms.reportimpl.param.ReportRecordVO;

import java.util.List;
import java.util.Map;

public interface IApiCallRecordService {

    /**
     * 分页查询api调用记录
     *
     * @param condition :
     * @return : com.baomidou.mybatisplus.core.metadata.IPage<com.primeton.whdc.ccms.reportimpl.entity.CallRecord>
     * @author : YunTao.Li
     * @date : 2020/4/2 2020/4/2
     */
    public IPage<CallRecord> getAPICallRecordList(Map<String, Object> condition) throws Throwable;

    /**
     * 新增api调用记录
     *
     * @param record :
     * @return : com.sun.javafx.collections.MappingChange.Map<java.lang.String,java.lang.String>
     * @author : YunTao.Li
     * @date : 2020/4/2 2020/4/2
     */
    public Map<String, String> addAPICallRecord(CallRecord record) throws Throwable;

    public List<ReportRecordTreeVO> getReport(Map<String, Object> condition) throws Throwable;
}
